// 导入+注册组件
import BaseButton from "@/components/BaseUI/BaseButton.vue";
import BaseCheckBox from "@/components/BaseUI/BaseCheckBox.vue";
import BaseBox from "@/components/BaseUI/BaseBox.vue";
import BaseTitle from "@/components/BaseUI/BaseTitle.vue";
import BaseInput from "@/components/BaseUI/BaseInput.vue";
import BaseInputNum from "@/components/BaseUI/BaseInputNum.vue";
import BaseSwitch from "@/components/BaseUI/BaseSwitch.vue";
import BaseTabs from "@/components/BaseUI/BaseTabs.vue";

// Vue.use调用这个函数时，会自动把Vue这个构造函数传进来
export default function (Vue) {
  // 注册上一步导入的所有组件
  Vue.component(BaseButton.name, BaseButton);
  Vue.component(BaseCheckBox.name, BaseCheckBox);
  Vue.component(BaseBox.name, BaseBox);
  Vue.component(BaseTitle.name, BaseTitle);
  Vue.component(BaseInput.name, BaseInput);
  Vue.component(BaseInputNum.name, BaseInputNum);
  Vue.component(BaseSwitch.name, BaseSwitch);
  Vue.component(BaseTabs.name, BaseTabs);
}
